import java.io.File;
import java.io.FileReader;

public class App {
    public static void deleFile(String path){
        File file=new File(path);
        if(file.isFile()){
            file.delete();
        }
    }
    public static void main(String[] args) throws Exception {
        System.out.println("Hello, World!");
        File file=new File("hi.txt");
        if(!file.exists()){
            file.createNewFile();
        }
        //deleFile("hi.txt");
        String dir = System.getProperty("user.dir");  
        File sourceFile=new File(dir);
        System.out.println(sourceFile.getPath());
        FileReader fr=new FileReader(file);
        int data=fr.read();
        while(data!=-1){
            System.out.print((char)data);
            data=fr.read();
        }
    }
}
